package com.ontheroad.mysql.path.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Service;

/**
 * Created by kedong on 2017/8/4 0004.
 */
public class PathEvent extends ApplicationEvent {
    private static final long serialVersionUID = -6381604147161141632L;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the component that published the event (never {@code null})
     */
    public PathEvent(Object source) {
        super(source);
    }

    public PathEvent(Object source, String gpxStr, Integer userId, Integer pathUserId, Integer pathSysId) {
        super(source);
        this.gpxStr = gpxStr;
        this.userId = userId;
        this.pathUserId = pathUserId;
        this.pathSysId = pathSysId;
    }

    private String gpxStr;
    private Integer userId;
    private Integer pathUserId;
    private Integer pathSysId;

    public String getGpxStr() {
        return gpxStr;
    }

    public void setGpxStr(String gpxStr) {
        this.gpxStr = gpxStr;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPathUserId() {
        return pathUserId;
    }

    public void setPathUserId(Integer pathUserId) {
        this.pathUserId = pathUserId;
    }

    public Integer getPathSysId() {
        return pathSysId;
    }

    public void setPathSysId(Integer pathSysId) {
        this.pathSysId = pathSysId;
    }
}
